<?php

namespace common\components\traits;

/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2015/6/30
 * Time: 15:50
 */
use common\components\helpers\EventData;
use common\components\helpers\MsgeventData;

trait BindBehaviorsTrait
{

    //无法解绑已经存在的行为
    //绑定行为
    public function behaviors()
    {
        //$old_result_arr = (new EventData(['className'=>get_class($this)]))->getBehaviorArray();//未开发完成之前之前旧的不要搞坏了，但是也不要搞一起搞冲突啦
        $new_result_arr = (new MsgeventData(['className'=>get_class($this)]))->getBehaviorArray();
        return $new_result_arr;
        //return array_merge($old_result_arr,$new_result_arr);
    }

}